package org.dromara.basic.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.basic.domain.AcademicYear;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 学年管理业务对象 phy_basic_academic_year
 *
 * @author Lion Li
 * @date 2024-11-14
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AcademicYear.class, reverseConvertGenerate = false)
public class AcademicYearBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 键值
     */
//    @NotBlank(message = "学年不能为空", groups = { AddGroup.class, EditGroup.class })
    private String academicYear;

    /**
     * 学年
     */
//    @NotNull(message = "键值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String academicName;

    /**
     * 状态
     */
//    @NotNull(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long status;

    private String flag;


}
